
const conn = require("./db/mongoose");
const mongoose = conn.mongo;
// const db = conn.db;

const Schema = mongoose.Schema;

const ClubUserSchema = new Schema({
    clubId :{type:Number},
    userId :{type:Number},   
    state : {type:Number,default:0},  
    name : {type:String},
    headimg : {type:String, default:""},
    role : {type:Number, default:0},
    createAt :{type:Number, default:parseInt(Date.now()/1000)},
});

//roomId唯一索引

const ClubUserModel = mongoose.model("clubUser", ClubUserSchema);

module.exports = ClubUserModel;